/*
 * @Author: Sam
 * @Date: 2020-12-28 14:30:06
 * @LastEditTime: 2020-12-28 14:30:06
 * @LastEditors: Sam
 * @Description: 
 * @FilePath: \thework\tofba-client\src\api\smallParcelWaybill.js
 * @可以输入预定的版权声明、个性签名、空行等
 */
/*
 * @Author: Sam
 * @Date: 2020-11-02 19:00:49
 * @LastEditTime: 2020-11-06 16:22:56
 * @LastEditors: Sam
 * @Description: 
 * @FilePath: \thework\tofba-client\src\api\smallParcelWaybill.js
 * @可以输入预定的版权声明、个性签名、空行等
 */
import request from '@/utils/request'

import qs from 'qs'

// 小包列表
export function parcelOrderList(data) {
  return request({
    url:  '/client/parcel/order/list',
    method: 'post',
    data
  })
}
export function parcelOrderRender(data) {
  return request({
    url:  '/client/parcel/order/render',
    method: 'post',
    data
  })
}

// 小包运单列表/操作/详情
export function parcelOrderDetail(data) {
  return request({
    url:  '/client/parcel/order/detail',
    method: 'post',
    data
  })
}
// 小包运单列表/操作/修改
export function parcelOrderEdit(data) {
  return request({
    url:  '/client/parcel/order/edit',
    method: 'post',
    data
  })
}
// 小包运单列表/操作/预览详情
export function parcelOrderPreview(data) {
  return request({
    url:  '/client/parcel/order/preview',
    method: 'post',
    data
  })
}
// 小包运单列表/操作/打印
export function parcelOrderPrint(data) {
  return request({
    url:  '/client/parcel/order/print',
    method: 'post',
    data
  })
}
// 小包运单列表/操作/删除
export function parcelOrderDelete(data) {
  return request({
    url:  '/client/parcel/order/delete',
    method: 'post',
    data
  })
}
// 小包运单列表/操作/扣件-取消扣件
export function parcelOrderCutOrder(data) {
  return request({
    url:  '/client/parcel/order/cutOrder',
    method: 'post',
    data
  })
}
// 小包运单列表/操作/复制
export function parcelOrderCopy(data) {
  return request({
    url:  '/client/parcel/order/copy',
    method: 'post',
    data
  })
}
// 小包运单列表/操作/确认
export function parcelOrderConfirm(data) {
  return request({
    url:  '/client/parcel/order/confirm',
    method: 'post',
    data
  })
}
// 小包运单列表/批量操作/批量提交订单
export function parcelOrderBatchConfirm(data) {
  return request({
    url:  '/client/parcel/order/batchConfirm',
    method: 'post',
    data
  })
}
// 小包运单列表/批量操作/批量删除订单
export function parcelOrderBatchDelete(data) {
  return request({
    url:  '/client/parcel/order/batchDelete',
    method: 'post',
    data
  })
}
// 小包运单列表/批量操作/批量下载面单
export function parcelOrderBatchPrint(data) {
  return request({
    url:  '/client/parcel/order/batchPrint',
    method: 'post',
    data
  })
}
// 小包下单 -校验参考号唯一性
export function checkReferenceDuplicate(data) {
  return request({
    url:  '/client/parcel/order/checkReferenceDuplicate',
    method: 'post',
    data
  })
}
// 小包下单 - 批量下单
export function batchCreateOrder(data) {
  return request({
    url:  '/client/parcel/order/batchCreateOrder',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
// 小包下单 - SKU自动补全
export function autoCompleteSku(data) {
  return request({
    url:  '/client/parcel/order/autoCompleteSku',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
// 小包下单 - 标准下单
export function createOrder(data) {
  return request({
    url:  '/client/parcel/order/createOrder',
    method: 'post',
    data
  })
}
// 小包下单 - 保存草稿
export function createSave(data) {
  return request({
    url:  '/client/parcel/order/save',
    method: 'post',
    data
  })
}
// 小包下单 - 草稿订单列表
export function parcelOrderDraft(data) {
  return request({
    url:  '/client/parcel/order/draft',
    method: 'post',
    data
  })
}


/**
 * 小包问题件
 */

 //  异步加载订单信息
export function parcelProblemAsync(data) {
  return request({
    url:  '/client/parcel/problem/async',
    method: 'post',
    data
  })
}
 //  小包问题件列表
export function parcelProblemList(data) {
  return request({
    url:  '/client/parcel/problem/list',
    method: 'post',
    data
  })
}
 //  小包问题件列表/操作/批量解冻
export function parcelProblemBatchSolve(data) {
  return request({
    url:  '/client/parcel/problem/batchSolve',
    method: 'post',
    data
  })
}
 //  小包问题件列表/操作/解冻
export function parcelProblemSolve(data) {
  return request({
    url:  '/client/parcel/problem/solve',
    method: 'post',
    data
  })
}